HEX
Server: Apache
System: Linux v38079.2is.nl 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: democfellows (10015)
PHP: 8.1.34
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/creativefellows.nl/univergeblue.creativefellows.nl/views/view.faq.php
<?php
	

		
	/*
	 * Get Header
	 */
	$show_header_spacer = false;
	$header_class 		= count($categories) == 1 && $categories[0]->hasSubcategories() || count($categories) > 1  ? "sticky-header" : "";
	$scroll_class 		= "header__fixed-scroll";
	
	require_once 'inc/header.php';
	
		
	$html = '<div class="grid-container" id="order-product">';
		$html .= '<div class="grid-x grid-padding-x">';

			$html .= '<div class="small-12 medium-3 cell sidebar" data-sticky-container>';
				$html .= '<div class="sticky" data-sticky="" data-margin-top="6" data-anchor="order-product" data-sticky-on="medium">';
			
					//$html .= '<h3>UNIVERGE BLUE<br />CONNECT</h3>';
					$html .= '<ul class="no-bullet">';
						
						$show_old = false;
						foreach($categories[0]->subCategories() as $page_section){
							
							//echo $page_section->getName();
							if($page_section->getName() == $category_name){
							
								foreach($page_section->categories() as $category){
									$show_old = true;
									//d($category);
									$html .=  '<li class="category-group">'. $category->name()  .'</li>';
									foreach($category->entries() as $entry)
									{	
										$html .= '<li><a href="'. $entry->url() .'" class="'. ($entry->isActive() ? "selected" : "")  .'">'. $entry->name() .'</a></li>';
									}
									
								}
								
								if($show_old == false){
									foreach($page_section->entries() as $entry)
									{	
										$html .= '<li><a href="'. $entry->url() .'" class="'. ($entry->isActive() ? "selected" : "")  .'">'. $entry->name() .'</a></li>';
									}
								}
								
							}
						
						
						}
						//d($categories[0]->subCategories());
					$html .= '</ul>';
				
				$html .= '</div>';	
			$html .= '</div>';				
			
			$html .= '<div class="small-12 medium-8 medium-offset-1 cell content">';
				$html .= $page[0]->getProperty("title","h1");
				$html .= $page[0]->getProperty("text");
			$html .= '</div>';				
			
			
		$html .= '</div>';
	$html .= '</div>';
	
	
	// output data as section
	echo $data["config"]->wrapAsSection($html,"","faq");
	
	
	
	
	/*
	 * Loopback
	 */	
	if( !$data["page"][0]->getProperty("loopback") ) require_once __DIR__ ."/loopback/default.php";
	else require_once __DIR__ ."/loopback/". $data["page"][0]->getProperty("loopback"); 
	
	
	
	/*
	 * Get Footer
	 */
	require_once $data["config"]->getSetting("footer_path");
	
?>